import fetcher from "./Fetcher";

export function getAdministrativeRegionTree(){
    return fetcher.get<AdministrativeRegionTreeResponse []>("administrativeRegions/tree")
}

export interface AdministrativeRegionTreeResponse {
    code: string
    name: string
    children:AdministrativeRegionTreeResponse[]
}